<%@ page import="database.MySQLUtils" %>
<%@ page import="java.sql.ResultSet" %><%--
  Created by IntelliJ IDEA.
  User: yfuxzpskbr
  Date: 2021/4/30
  Time: 19:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人注册</title>
    <link rel="stylesheet" href="register1.css?v=<%=System.currentTimeMillis()%>">
    <link rel="stylesheet" href="register2.css?v=<%=System.currentTimeMillis()%>">
    <script src="register.js"></script>
    <link rel="icon" type="image/x-icon" href="res/favicon.ico"/>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    response.setContentType("text/html;charset=UTF-8");
%>
<div class="header">
    <div class="img">
        欢迎注册
    </div>
    <div class="tologin">
        已有账号? <a href="login.jsp">请登录></a>
    </div>
</div>
<div class="body">
    <div class="box" id="box1">
        <div class="top" id="top">
            <div class="bbox selected">
                <div class="cir cir_" id="cir_1">
                    √
                </div>
                验证手机号
            </div>
            <div class="bbox selected" style="margin-left: 62px;" id="bbox2">
                <div class="cir cir_" id="cir_2">
                    2
                </div>
                填写账号信息
            </div>
            <div class="bbox" style="float: right;" id="bbox3">
                <div class="cir" id="cir_3">
                    3
                </div>
                注册成功
            </div>
            <div id="dd1"
                 style="position: absolute;top:8px;left:65px;width: 124px;height: 10px;background-image: url(./res/diandian.png);"></div>
            <div id="dd2"
                 style="position: absolute;top:8px;left:230px;width: 124px;height: 10px;background-image: url(./res/diandian.png);"></div>
        </div>
        <div class="input" id="input2">
            <div class="username">
                <span style="font-size:14px;display: inline-block;line-height: 50px;height: 50px; width: 80px; padding-left:20px;color:#666666;border: 1px #e6e6e6 solid;">用 户 名</span>
                <input type="text" placeholder="请输入用户名" id="user_" onkeyup="isuserOK()">
            </div>
            <div class="info" id="info3_">用户名可以使用数字,下划线,字母,汉字</div>
            <div class="password" style="margin-top: 20px;">
                <span style="font-size:14px;display: inline-block;line-height: 50px;height: 50px; width: 80px; padding-left:20px;color:#666666;border: 1px #e6e6e6 solid;">设置密码</span>
                <input type="password" placeholder="请输入密码" id="pwd_" onkeyup="ispwdOK()">
            </div>
            <div class="info" id="info4_">密码必须包含英文字母和数字,不能少于8位,还可以使用下划线</div>
            <div class="querenpp" style="margin-top: 20px;">
                <span style="font-size:14px;display: inline-block;line-height: 50px;height: 50px; width: 80px; padding-left:20px;color:#666666;border: 1px #e6e6e6 solid;">确认密码</span>
                <input type="password" placeholder="请再次输入密码" id="pwd__" onkeyup="isPwd__OK()">
            </div>
        </div>
        <div class="button" id="button2">
            <button onclick="gotoOK()">立即注册</button>
        </div>
        <div class="bottom" id="bottom1" style="margin-top: 10px;">
            <span style="background-image: url(./res/leftpng.png);background-repeat: no-repeat;"><a href="#">企业用户注册</a></span>
            <span style="float: right; margin-right: 20px;background-image: url(./res/rightpng.png);background-repeat: no-repeat;"><a
                    href="#">海外用户注册</a></span>
        </div>
    </div>
</div>
<div class="footer">
    <div class="ftext">
        <ul>
            <li><a href="#" style="border: none;">关于我们</a></li>
            <li><a href="#">联系我们</a></li>
            <li><a href="#">人才招聘</a></li>
            <li><a href="#">商家入驻</a></li>
            <li><a href="#">广告服务</a></li>
            <li><a href="#">手机京东</a></li>
            <li><a href="#">友情链接</a></li>
            <li><a href="#">销售联盟</a></li>
            <li><a href="#">京东社区</a></li>
            <li><a href="#">京东公益</a></li>
            <li><a href="#">English Site</a></li>
        </ul>
        <br>
        <span style="font-size:12px;color:#999;margin-left:400px;">Copyright©2004-2021  京东JD.com 版权所有</span>
    </div>
</div>
<div class="line"></div>

<%
    final String mobile = request.getParameter("mobile");
    session.setAttribute("mobile",mobile);
//    String sql = "select * from user where mobile="+mobile;
//    ResultSet resultSet = MySQLUtils.getResultSet(sql);
//    if(resultSet.next()){
//        //说明这个手机号已经存在
//        session.setAttribute("exists","true");
//        response.sendRedirect("./register_step1.jsp");
//    }
%>
</body>
</html>
